package com.foreknow.elm.dao;

import com.foreknow.elm.po.User;

/**
 * @author 啊滨
 * @date 2023/2/14 9:49
 */
public interface UserDao {
    /**
     * 根据用户编号与密码查询用户信息
     * @param userId
     * @param password
     * @return
     */
    public User getUserByIdByPass(String userId,String password)throws Exception;

    /**
     *  根据用户编号查询用户表返回的行数
     * @param userId
     * @return
     * @throws Exception
     */
    public int getUserById(String userId) throws Exception;

    public int saveUser(String userId,String password,String userName,Integer userSex)throws Exception;
}
